#!/bin/bash

cd $SOURCE_HOME

OSTYPE=`uname`
EXCLUDE='--exclude=wkhtml* --exclude=.bin --exclude=log --exclude=obj --exclude=*.java --exclude=*.cgi --exclude=*.cpp --exclude=lua --exclude=*.db --exclude=*.c --exclude=*.o'

if [ "$OSTYPE" == "Linux" ]
then
	tar zcvf product.tar.gz $EXCLUDE --exclude=win configure cppshell product library toolkit webapp
else
	tar zcvf product.tar.gz $EXCLUDE configure cppshell product library toolkit webapp
fi

cd -